﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Authority.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Css/screen.css" rel="stylesheet" type="text/css" />
    <link href="Css/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="Js/jquery-1.4.2.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" enableviewstate="false">
        <div class="container">
            <h1 class="prepend-1">权限控制</h1>
            <hr />
            <h2 class="alt prepend-2">权限控制通用管理类</h2>
            <hr />
            <div class="span-7 colborder">
                <h6>用户</h6>
                基本用户表
            </div>
            <div class="span-8 colborder">
                <h6>用户角色</h6>
                用户角色表
            </div>
            <div class="span-7 last">
                <h6>角色</h6>
                基本角色表
            </div>
            <hr />
            <hr class="space" />
            <div class="span-4 colborder">
                <h6>用户名</h6>
                <asp:TextBox ID="TbxUser" runat="server"></asp:TextBox>
            </div>
            <div class="span-11 colborder">
                <h6>权限</h6>
                <asp:CheckBox ID="CbxRead" runat="server" Text="只读" />
                <asp:CheckBox ID="CbxWrite" runat="server" Text="读写" />
                <asp:CheckBox ID="CbxModify" runat="server" Text="修改" />
                <asp:CheckBox ID="CbxDelete" runat="server" Text="删除" />
                <asp:CheckBox ID="CbxCreate" runat="server" Text="添加" />
                <span class="prepend-2"><input type="checkbox" id="checkAll" /><label for="checkAll">全选</label></span>
            </div>
            <div class="span-7 last">
                <asp:Button ID="BtnSave" runat="server" Text="保存" onclick="BtnSave_Click" />
            </div>
            <hr />
            <AllenJqGrid:JqGrid ID="MyJqGrid" runat="server" TableName="Users" DblClickRowFnName="jqGridDblClick" Search="true" Edit="true" Del="true" />
            <hr />
            <p>权限管理结束</p>
        </div>
    </form>
</body>
<script type="text/javascript">
    var jqGridDblClick = function (rowId) {
        window.location = "index.aspx?id=" + rowId;
    }
</script>
</html>
